package com.atmyc.yygh.hospital.repository;

import com.atmyc.yygh.model.hosp.Department;
import com.atmyc.yygh.model.hosp.Schedule;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
public interface ScheduleRespository extends MongoRepository<Schedule,String> {

    //根据医院编号，科室编号合工作日期，查询排班详细信息
    List<Schedule> findScheduleByHoscodeAndDepcodeAndWorkDate(String hoscode, String depcode, Date workDate);

    //根据医院编号 和 排班编号查询
    Schedule getScheduleByHoscodeAndHosScheduleId(String hoscode,String hosScheduleId);
}
